package com.ruoyi.medical.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.medical.mapper.AlarmlocalMapper;
import com.ruoyi.medical.domain.Alarmlocal;
import com.ruoyi.medical.service.IAlarmlocalService;

/**
 * alarmlocalService业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-30
 */
@Service
public class AlarmlocalServiceImpl implements IAlarmlocalService 
{
    @Autowired
    private AlarmlocalMapper alarmlocalMapper;

    /**
     * 查询alarmlocal
     * 
     * @param id alarmlocal主键
     * @return alarmlocal
     */
    @Override
    public Alarmlocal selectAlarmlocalById(Long id)
    {
        return alarmlocalMapper.selectAlarmlocalById(id);
    }

    /**
     * 查询alarmlocal列表
     * 
     * @param alarmlocal alarmlocal
     * @return alarmlocal
     */
    @Override
    public List<Alarmlocal> selectAlarmlocalList(Alarmlocal alarmlocal)
    {
        return alarmlocalMapper.selectAlarmlocalList(alarmlocal);
    }

    /**
     * 新增alarmlocal
     * 
     * @param alarmlocal alarmlocal
     * @return 结果
     */
    @Override
    public int insertAlarmlocal(Alarmlocal alarmlocal)
    {
        alarmlocal.setCreateTime(DateUtils.getNowDate());
        return alarmlocalMapper.insertAlarmlocal(alarmlocal);
    }

    /**
     * 修改alarmlocal
     * 
     * @param alarmlocal alarmlocal
     * @return 结果
     */
    @Override
    public int updateAlarmlocal(Alarmlocal alarmlocal)
    {
        return alarmlocalMapper.updateAlarmlocal(alarmlocal);
    }

    /**
     * 批量删除alarmlocal
     * 
     * @param ids 需要删除的alarmlocal主键
     * @return 结果
     */
    @Override
    public int deleteAlarmlocalByIds(Long[] ids)
    {
        return alarmlocalMapper.deleteAlarmlocalByIds(ids);
    }

    /**
     * 删除alarmlocal信息
     * 
     * @param id alarmlocal主键
     * @return 结果
     */
    @Override
    public int deleteAlarmlocalById(Long id)
    {
        return alarmlocalMapper.deleteAlarmlocalById(id);
    }
}
